package com.gg.ai.service;

import com.gg.ai.pojo.ChatHistory;

import java.util.List;
import java.util.Map;

public interface ChatHistoryService {
    ChatHistory queryList(Integer userId,String sessionId);

    ChatHistory getSessionById(Integer id);

//    List<Map<String,Object>> historyList
    boolean updateHistoryList(Integer id, List<Map<String,Object>> historyList);

    List<ChatHistory> getSessionByUserId(Integer userId);

    boolean insertSession(Integer userId);

    boolean deleteSession(Integer id);
}
